package com.task.src.mapper;


import com.task.src.dto.Task;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;


@Mapper
public interface TaskMapper {
    public List<Task> selectAllTask(int uid);
    public int updateType(@Param("id")int taskid);
    public int updateStatus(@Param("id")int taskid);
    public List<Task> selectParamTask(@Param("id")int id);
    public List<Task> selectTaskDto(@Param("type") String type,@Param("uid")String uid);
    public List<Task> selectTaskByQuery(String msg);
    int insertPubTask(Task task);
    int insertToPubTable(@Param("uid") int uid,@Param("tid") int tid);
}
